<div>

    <div class="ibox ">
        <div class="ibox-title">
            <h5>
                <vc:i18n name="查询条件"></vc:i18n>
            </h5>
            <div class="ibox-tools" style="top:10px;">

            </div>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" :placeholder="vc.i18n('请选择产品名称','productGroupManage')"
                            v-model="productGroupManageInfo.conditions.prodName" class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <select class="custom-select" v-model="productGroupManageInfo.conditions.state">
                        <option selected value="">
                            {{vc.i18n('请选择状态','addProductGroup')}}
                        </option>
                        <option value="1001">{{vc.i18n('启用','addProductGroup')}}</option>
                        <option value="2002">{{vc.i18n('停用','addProductGroup')}}</option>
                    </select>
                </div>
                <div class="col-sm-2">
                    <select class="custom-select" v-model="productGroupManageInfo.conditions.rebateFlag">
                        <option selected value="">
                            {{vc.i18n('请选择是否返佣','addProductGroup')}}
                        </option>
                        <option value="Y">{{vc.i18n('是','addProductGroup')}}</option>
                        <option value="N">{{vc.i18n('否','addProductGroup')}}</option>
                    </select>
                </div>
                <div class="col-sm-1">
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryProductGroupMethod()">
                        <i class="glyphicon glyphicon-search"></i> <span>
                            <vc:i18n name="查询"></vc:i18n>
                        </span>
                    </button>
                </div>
            </div>
        </div>
    </div>

    <div class="ibox">
        <div class="ibox-title">
            <h5>
                <vc:i18n name="拼团商品" namespace="productGroupManage"></vc:i18n>
            </h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddProductGroupModal()">
                    <vc:i18n name="添加" namespace="productGroupManage"></vc:i18n>
                </button>
            </div>
        </div>
        <div class="ibox-content">

            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                <thead>
                    <tr>
                        <th class="text-center">
                            <vc:i18n name='编号' namespace='productGroupManage'></vc:i18n>
                        </th>
                        <th class="text-center">商品图片</th>
                        <th class="text-center">
                            <vc:i18n name='商品名称' namespace='productGroupManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='拼团人数' namespace='productGroupManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='拼团金额' namespace='productGroupManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='单买金额' namespace='productGroupManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='状态' namespace='productGroupManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='有效期' namespace='productGroupManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='是否返佣' namespace='productGroupManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='团长返佣' namespace='productGroupManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='操作'></vc:i18n>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="productGroup in productGroupManageInfo.productGroups">
                        <td class="text-center">{{productGroup.groupId}}</td>
                        <td class="text-center">
                            <div style="position: relative; display: inline-block;">
                                <img width="50" height="50" style="border-radius: 10px;" :src="productGroup.coverPhoto"
                                    v-if="productGroup.coverPhoto">
                                <img width="50" height="50" style="border-radius: 10px;" src="/img/noPhoto.jpg" v-else>
                            </div>
                        </td>
                        <td class="text-center">{{productGroup.prodName}}</td>
                        <td class="text-center">{{productGroup.userCount}}</td>
                        <td class="text-center">￥{{productGroup.groupPrice}}</td>
                        <td class="text-center">￥{{productGroup.price}}</td>
                        <td class="text-center">{{productGroup.state == '1001'?'启用':'停用'}}</td>
                        <td class="text-center">{{productGroup.startTime}}~{{productGroup.endTime}}</td>
                        <td class="text-center">{{productGroup.rebateFlag == 'Y'?'是':'否'}}</td>
                        <td class="text-center">{{productGroup.rebate}}%</td>
                        <td class="text-center">
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openEditProductGroupModel(productGroup)">
                                    <vc:i18n name='修改'></vc:i18n>
                                </button>
                            </div>
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openDeleteProductGroupModel(productGroup)">
                                    <vc:i18n name='删除'></vc:i18n>
                                </button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <vc:create path="frame/pagination"></vc:create>
        </div>
    </div>


    <vc:create path="group/addProductGroup" callBackListener="" callBackFunction=""></vc:create>
    <vc:create path="group/editProductGroup"></vc:create>
    <vc:create path="group/deleteProductGroup"></vc:create>

</div>